#include <iostream>
#include <string.h>
using namespace std;

const int size=128;
void main()
{	
	char mas[size]="1234123";
	char m;
	gets(mas);
	cin>>m;
	
	for(int i=0;i<strlen(mas);i++)
	{
		
		if(mas[i]==m)
		{
			cout<<i<<" element is coincides\n";
		}
		cout<<"";
	}
	
}